﻿using Manon.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.Admin.Web.ApplicationCore.Entities.News
{


    [Table("news")]
    public class News : IBaseEntity
    {
        public int Id { get; set; }

        public int CategoryId { get; set; }

        public string Title { get; set; }

        public string ShortTitle { get; set; }

        public int OrderIndex { get; set; }

        public string Keyword { get; set; }

        public string ArticleAbstract { get; set; }

        public string ArticleContent { get; set; }

        public string Author { get; set; }

        public string Source { get; set; }

        public bool AllowComment { get; set; } = false;

        public DateTime? CommentStartDate { get; set; }

        public DateTime? CommentEndDate { get; set; }

        public string ImageUrl { get; set; }

        public bool Enabled { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime UpdateTime { get; set; }
        public int CreateBy { get; set; }
        public int UpdateBy { get; set; }
        public DateTime? DeleteTime { get; set; }
        public bool IsDeleted { get; set; }
    }
}
